// AdminService.java
package com.neusoft.SPNursingHome.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.SPNursingHome.po.Admin;
import com.neusoft.SPNursingHome.po.Client;
import com.neusoft.SPNursingHome.po.ResponseBean;

import java.util.List;

public interface AdminService {

    ResponseBean<Admin> getById(Integer id);
    ResponseBean<Void> create(Admin admin);
    ResponseBean<Void> update(Admin admin);
    ResponseBean<Void> delete(Integer id);
    ResponseBean<Void> unassignClient(Integer clientId);
    // 登录
    ResponseBean<String> login(String account, String password);
    public ResponseBean<Void> resetPasswordToPhoneSuffix(Integer id);

    ResponseBean<Admin> loginWithOutRedis(String account, String password);

    // 根据管理员 ID 查询其所护理的客户
    ResponseBean<IPage<Client>> listClientsByAdmin(Integer adminId, long page, long size);

    IPage<Admin> listCareAd(String name, long page, long size);
    IPage<Admin> listAll(String name, String role, long page, long size);

}
